/**
 * Created by seeker910 on 2014/8/28.
 */
Rsd.define('Rsd.hermit.pages.ShopPage', {
    extend: 'Rsd.hermit.pages.ShopMaster',
    requires: [ ],
    xtype:'shop-page', 
    title:'Home',
    height:'100%',  
    banner:{ 
        height:600,
        width:'100%',
        dataSource:[]
    },
    content:[
        {
            height:50
        },
        {
             xtype: 'collection',
             label:false, 
             columnCount:2,
             itemXtype:'ads-view', 
             dataSource:[
                {   
                    height:500, 
                    style:{
                        backgroundColor:'#81818114',
                    },
                    dataSource:{ 
                        link:{
                            url:'./debug.html?view=product&key=1234456',
                            target:'_self'
                        },
                        html:{
                            content:'Box Velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidata non proident, sunt in culpa qui officia deserun',
                            style:{
                                color:'#000',
                                fontSize:'150%',
                                width:'90%',
                                top:50,
                                left:50
                            }
                        },
                        button:{
                            text:'BUY NOW', 
                            style:{
                                top:'300px', 
                                left:300,
                                width:'80%',
                                textAlign:'center',
                                //color:'#fff'
                            }
                        },
                        image:{
                            position:'left center',
                            size:'contain',
                            src:'http://image.redmicro.cn/hermit/18.webp',
                        }
                    }
                }, 
                {
                     
                    height:500, 
                    style:{
                        backgroundColor:'#4b8a8e85',
                    },
                    dataSource:
                    { 
                        html:{
                            content:'<p style=\"color:#000;width:100%;font-size:70%;\">Bag Velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidata non proident, sunt in culpa qui officia deserun'
                        },
                        image:{
                            src:'http://image.redmicro.cn/hermit/21.webp',
                            position:'right center',
                            size:'contain'
                        },
                    }
                }
             ]
        }, 
        {
            xtype: 'collection',
             label:false,
             height:'auto', 
             columnCount:4,
             itemXtype:'ads-view', 
             dataSource:[
                {
                     height:400, 
                     width:'80%',
                     dataSource:{
                        html:'Velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidata non proident, sunt in culpa qui officia deserun',
                        image:{
                            src:'http://image.redmicro.cn/hermit/15.webp'
                        }
                     } 
                },
                {
                    height:400, 
                    width:'80%',
                     dataSource:{
                        html:'Velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidata non proident, sunt in culpa qui officia deserun',
                        image:{
                            src:'http://image.redmicro.cn/hermit/10.webp'
                        }
                     }
                },
                {
                    height:400, 
                     width:'80%',
                     dataSource:{
                        html:'Velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidata non proident, sunt in culpa qui officia deserun',
                        image:{
                            src:'http://image.redmicro.cn/hermit/13.webp'
                        }
                     }
                },
                {
                    height:400, 
                    width:'80%',
                    dataSource:{
                        html:'Velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidata non proident, sunt in culpa qui officia deserun',
                        image:{
                            src:'http://image.redmicro.cn/hermit/17.webp'
                        }
                     }
                }
             ]
        }, 
        {
             xtype: 'ads-view',
             height:400,
             width:'100%',
             dataSource:{
                html:{
                    content:'Velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidata non proident, sunt in culpa qui officia deserun',
                    style:{
                        color:'red', 
                        width:'60%',
                        left:'20%',
                        top:'30%'
                    }
                },
                image:'http://image.redmicro.cn/hermit/12.webp'
             }
        },
        {
            xtype: 'collection',
             label:false,
              height:'auto', 
             columnCount:4,
             itemXtype:'product-item-view', 
             dataSource:[
                {
                     height:400, 
                     width:'80%',
                     dataSource:{
                        title:'Velit esse cillum dolore eu fugiat nulla pariatur.sunt in culpa qui officia deserun',
                        price:99.99,
                        images:['http://image.redmicro.cn/hermit/1.webp']
                     }
                    
                },
                {
                    height:200, 
                    width:'80%',
                     dataSource:{
                        title:'Velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidata non proident',
                        price:99.97,
                        images:['http://image.redmicro.cn/hermit/1.webp']
                     }
                },
                {
                    height:400, 
                     width:'80%',
                     dataSource:{
                        title:' Excepteur sint occaecat cupidata non proident, sunt in culpa qui officia deserun',
                        price:99.89,
                        images:['http://image.redmicro.cn/hermit/1.webp']
                     }
                },
                {
                    height:300, 
                     width:'80%',
                     dataSource:{
                        title:'Velit esse cillum dolore eu fugiat nulla pariatur. sunt in culpa qui officia deserun',
                        price:99.59,
                        images:['http://image.redmicro.cn/hermit/1.webp']
                     }
                }
             ]
        },  

    ],
    /**
     * 
     * @param {*} config 
     */
    constructor: function ShopPage(config) {
        config = config || {};
        Rsd.apply(this, config);
    },
    /**
     * 
     */
    load:function load() {
        this.callParent(); 
    }
});
